package com.yue.springdemo.modular.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 用户实体类
 *
 * @author yuelinbo
 * @date 2018/12/26 10:57
 **/

@Data
@Component("user")
@ConfigurationProperties("user1")
public class User {

    private Long id;

    @Value("${name}")
    private String userName;

    @Value("${note}")
    private String note;

}
